#include<stdio.h>

int removeSameNum(int* num, int v, int size)
{
	int left = 0;
	for (int right = 0; right < size; right++)
	{
		if (num[right] != v)
		{
			num[left] = num[right];
			left++;
		}
	}
	return left;
}

int main()
{
	int num[] = { 2,3,3,6,3 };
	int x = 0;
	x = removeSameNum(num, 3, 5);
	for ( int i = 0; i < x; i++)
	{
		printf("%d ", num[i]);
	}
	printf("\n");
	return 0;
}